package com.atguigu.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author 张晓
 * @create 2020-11-30 22:29
 */
//SpringMVC只扫描Controller;子容器
//禁用默认的过滤规则：useDefaultFilters = false
@ComponentScan(value = {"com.atguigu"}, includeFilters = {
        @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Controller.class})
}, useDefaultFilters = false)
public class AppConfig {
}
